<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ include file="/common/taglibs.jsp"%>
<link rel="stylesheet" type="text/css" href="${ctx}/styles/sideMenu.css" media="screen"/>
<script type="text/javascript" src="${ctx}/scripts/sideMenu.js"></script>
<div class="sideMenu" id="sideMenu_top">
<div class="sideMenuPanel1 sideMenuPanelOpen1">
	<div class="sideMenuPanelTab1 sideMenuPanelTabHover1">
		<strong>论坛主版</strong>
	</div>
	<div class="sideMenuPanelContent" style="height: auto; display: block;">
		<ul>
		<c:forEach var="board" items="${nav_boards}">
			<c:if test="${board.parentId == 1}">
			<li>
			<a href='<c:url value="/bbs/bi.do?bid=${board.boardId}" />'><c:out value="${board.chineseName}"/></a>
			</li>
			</c:if>
		</c:forEach>
		</ul>
	</div>
</div>
</div>
<!--
<div class="sideMenu" id="sideMenu_all">
<div id="sideMenu_mountain_panel" class="sideMenuPanel sideMenuPanelClosed">
	<div id="sideMenu_mountain" class="sideMenuPanelTab">
		千山
	</div>
	<div class="sideMenuPanelContent" style="height: 0px; display: block;">
	<ul id="menu_mountain">
	<c:forEach var="board" items="${nav_boards}">
		<c:if test="${board.parentId == 20000}">
		<li>
		<a href='<c:url value="/bbs/bi.do?bid=${board.boardId}" />'><c:out value="${board.chineseName}"/></a>
		</li>
		</c:if>
	</c:forEach>
	</ul>
	</div>
</div>
<div id="sideMenu_lake_panel" class="sideMenuPanel sideMenuPanelClosed">
	<div id="sideMenu_lake" class="sideMenuPanelTab">
		千水
	</div>
	<div class="sideMenuPanelContent" style="height: 0px; display: block;">
	<ul id="menu_lake">
	<c:forEach var="board" items="${nav_boards}">
		<c:if test="${board.parentId == 30000}">
		<li>
		<a href='<c:url value="/bbs/bi.do?bid=${board.boardId}" />'><c:out value="${board.chineseName}"/></a>
		</li>
		</c:if>
	</c:forEach>
	</ul>
	</div>
</div>

</div>
  -->
<script type="text/javascript">
var sideMenu = new Spry.Widget.Accordion("sideMenu_all", { useFixedPanelHeights: false, enableAnimation: false, defaultPanel: 3 });

var boardId = '<c:out value="${bid}"/>';
if(boardId != null && boardId != ""){
	if(20000 < boardId && boardId < 30000){
		sideMenu.openPanel("sideMenu_mountain_panel");
	}
	if(30000 < boardId && boardId < 40000){
		sideMenu.openPanel("sideMenu_lake_panel");
	}
}else{
	sideMenu.openPanel("sideMenu_mountain_panel");
}
</script>